<?php

// comment out the following two lines when deployed to production
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'dev');
date_default_timezone_set("Asia/Shanghai");
require(__DIR__ . '/../vendor/autoload.php');
require(__DIR__ . '/../vendor/yiisoft/yii2/Yii.php');

$config = require(__DIR__ . '/../config/web.php');
//引入版本号
if(file_exists("../data/version_book.txt")){
	define("RELEASE_VERSION",trim(file_get_contents("../data/version_book.txt")));
}else{
	define("RELEASE_VERSION",time());
}
(new yii\web\Application($config))->run();
